export type BookListType = {
  searchKey?: string;
  typeAid?: number;
  page: number;
  pageSize: number;
};

export type addBookType = {
  aid: number;
  name: string;
  typeAid: number;
  isbn: string;
  quantity: number;
  remarks?: string;
};

export type BookList = {
  aid: number;
  isbn: string;
  typeName: string;
  name: string;
  quantity: number;
  createDate: string;
};

export type damageBookType = {
  aid: number;
  damageQuantity: number;
  remarks?: string;
};

export type bookInfoType = {
  name: string;
  isbn: string;
  quantity: number;
  typeAid: number;
  remarks: string;
};

export type Classification = {
  searchKey?: string;
  page: number;
  pageSize: number;
};

export type CreateClassificationType = {
  aid: number;
  name: string;
  fatherAid?: number;
};

export type ClassificationList = {
  aid: number;
  name: string;
  canDelete: boolean;
  children: ClassificationList[];
};

export type LoginParamsType = {
  phone: string;
  password: string;
  imageCode: string;
  imageCodeKey: string;
};

export type UserList = {
  aid: number;
  name: string;
  phone: string;
  password: string;
  stateId: number;
  enclosureId?: string;
  enclosureName?: string;
  createDate: string;
};

export type addUserType = {
  aid: number;
  name: string;
  phone: string;
  password: string;
  enclosureId?: string;
};

export type userInfoType = {
  name: string;
  phone: string;
  password: string;
  enclosureId?: string;
  enclosureName?: string;
};

export type UserListType = {
  searchKey?: string;
  stateId?: number;
  page: number;
  pageSize: number;
};

export type ImageCodeType = {
  imageCodeKey: string;
  imageCodeBase64: string;
};
